{extend name="common@base/common"/}

{block name="style"}
    <link href="__CSS__/ucenter.min.css" type="text/css" rel="stylesheet">
{/block}

{block name="body"}
<div id="main-container" class="container">
    <div class="usercenter">
        <div class="uc">
            {include file="index/_top"/}
            {include file="index/_top_menu"/}
            <div class="uc_content clearfix">
                <div class="col-md-8">
                    <div class="row">
                        <div class="col-xs-12 uc_fans" style="margin-left: 10px;">
                            <ul class="nav nav-primary ucenter-tab">
                                <li {eq name="tab" value="following"} class="active"{/eq}>
                                    <a href="{:url('ucenter/Index/following',array('uid'=>$uid))}">
                                    {if condition="$uid eq is_login()"}
                                        {:lang('_I_')}
                                    {else/}
                                        Ta
                                    {/if}
                                    {:lang('_DE_FOLLOWER_')}</a></li>
                                <li {eq name="tab" value="fans"} class="active"{/eq}>
                                    <a href="{:url('ucenter/Index/fans',array('uid'=>$uid))}">
                                    {if condition="$uid eq is_login()"}
                                        {:lang('_I_')}
                                    {else/}
                                        Ta
                                    {/if}
                                    {:lang('_DE_FANS_')}
                                    </a>
                                </li>
                            </ul>

                        </div>
                    </div>
                    {if condition="count($fans) eq 0"}
                        <p class="text-muted text-center">
                        <br><br>
                        {:lang('_FANS_NONE_')}{:lang('_WAVE_')}
                        <br><br>
                    </p>
                    {/if}
                    <div style="margin: 20px 0 20px 20px;">
                        {volist name="fans" id="fan"}
                            <div class="row"
                                 style="border-bottom: 1px solid #dedede;padding-bottom: 20px;padding-top:20px;margin-left: 0;margin-right: 0">
                                <div class="col-xs-2">
                                    <img ucard="{$fan.who_follow}" style="width: 80px" class="avatar-img"
                                         src="{$fan.user.avatar128}"/>
                                </div>
                                <div class="col-xs-10">
                                    <div><a href="{$fan.user.space_url}" ucard="{$fan.who_follow}">{$fan.user.nickname}</a>
                                        <br/>
                                        {:lang('_GRADE_')}{:lang('_COLON_')}{$fan.user.title}
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-4">
                                            {:lang('_FANS_')}{:lang('_COLON_')}
                                            {$fan.user.fans}
                                        </div>
                                        <div class="col-xs-4">
                                            {:lang('_FOLLOWERS_')}{:lang('_COLON_')}
                                            {$fan.user.following}
                                        </div>
                                    </div>
                                </div>
                            </div>
                        {/volist}
                        <div class="page">
                            {$fans->render()}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}

